<?php

Route::group(['namespace' => 'User'], function () {

    Route::any('/login',function (){
        return view('login');
    });
    Route::any('/doLogin','LoginController@doLogin');
    Route::any('/register',function (){
        return view('register');
    });
    Route::any('/doRegister','LoginController@doRegister');
});

Route::group(['namespace' => 'User','prefix' => 'user'], function () {
    Route::any('/index', 'IndexController@index');
});
